package cn.wolfcode.trip.base.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Setter;
import lombok.Getter;
import org.springframework.format.annotation.DateTimeFormat;

@Getter
@Setter
public class Answer extends BaseDomain {

    private User user; //答题者

    private String content; //回答内容

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date answerTime; //回答时间

    private int commentNumber; //该问题总评论条数
}